
/**
 * @Description: 登陆时的数据类型
 * @Author: meidusa
 * @Date: 2025-10-09 10:46:52
 */
export interface LoginStoreType {
    token: string; // token
    user_info: UserInfoType | null; // 用户信息

    setToken: (token: string) => void; // 设置token
    // getToken: () => string; // 获取token
    setUserinfo: (userinfo: UserInfoType) => void; // 设置用户信息
    // getUserinfo: () => UserInfoType | null; // 获取用户信息
}

/**
 * @Description: 用户信息类型
 * @Author: meidusa
 * @Date: 2025-10-09 10:46:52
 */
export interface UserInfoType {
    avatar: string,
    birthday: string,
    coach_wx_gzh_openid: string | null,
    createtime: string,
    expires_in: string | number,
    expiretime: string | number,
    gender: string | number,
    id: string | number,
    mobile: string | number,
    pinpai: string | number,
    pinpai_id: string | number,
    realname: string,
    store_id: string | number,
    token: string | number,
    user_id: string | number,
    username: string,
}